home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / graphics / fxforge / gravitational lenser 1.1 < prev    next >
Text File  |  1999-06-15  |  2KB  |  26 lines

  1. Category: Filter Factory Gallery S
  2. Title: Gravitational Lenser 1.2...
  3. Author: Leos Ondra
  4. Copyright: Copyright © 1997 Leos Ondra
  5.  
  6. ctl[0]: Horizontal position of the lens
  7. ctl[1]: Vertical position of the lens
  8. ctl[2]: Einstein radius
  9. ctl[3]: R color of the Einstein ring and the undefined area
  10. ctl[4]: G color of the Einstein ring and the undefined area
  11. ctl[5]: B color of the Einstein ring and the undefined area
  12. ctl[6]:
  13. ctl[7]: 
  14. val[0]: 0
  15. val[1]: 0
  16. val[2]: 0
  17. val[3]: 0
  18. val[4]: 0
  19. val[5]: 0
  20. val[6]: 0
  21. val[7]: 0
  22. R:put(x-val(0,0,X),0),put(y-val(1,Y,0),1),put(get(0)*get(0)+get(1)*get(1),2),put(get(0)*val(2,0,min(X/2,Y/2))*val(2,0,min(X/2,Y/2))/get(2),3),put(get(1)*val(2,0,min(X/2,Y/2))*val(2,0,min(X/2,Y/2))/get(2),4),sqr(get(2))==val(2,0,min(X/2,Y/2))||get(2)==0||(x-get(3)>X)||(x-get(3)<0)||(y-get(4)>Y)||(y-get(4)<0)?ctl(3):src(x-get(3),y-get(4),z)
  23. G:put(x-val(0,0,X),0),put(y-val(1,Y,0),1),put(get(0)*get(0)+get(1)*get(1),2),put(get(0)*val(2,0,min(X/2,Y/2))*val(2,0,min(X/2,Y/2))/get(2),3),put(get(1)*val(2,0,min(X/2,Y/2))*val(2,0,min(X/2,Y/2))/get(2),4),sqr(get(2))==val(2,0,min(X/2,Y/2))||get(2)==0||(x-get(3)>X)||(x-get(3)<0)||(y-get(4)>Y)||(y-get(4)<0)?ctl(4):src(x-get(3),y-get(4),z)
  24. B:put(x-val(0,0,X),0),put(y-val(1,Y,0),1),put(get(0)*get(0)+get(1)*get(1),2),put(get(0)*val(2,0,min(X/2,Y/2))*val(2,0,min(X/2,Y/2))/get(2),3),put(get(1)*val(2,0,min(X/2,Y/2))*val(2,0,min(X/2,Y/2))/get(2),4),sqr(get(2))==val(2,0,min(X/2,Y/2))||get(2)==0||(x-get(3)>X)||(x-get(3)<0)||(y-get(4)>Y)||(y-get(4)<0)?ctl(5):src(x-get(3),y-get(4),z)
  25. A:a
  26.